﻿@model IEnumerable<MusicStore.Models.Album>
@{
    ViewBag.Title = "Seacrh";
}

<h2>查找实现</h2>

<table>
    <tr>
        <th>专辑名称</th>
        <th>价格</th>
        <th>流派</th>
        <th>歌手</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.Title</td>
            <td>@item.Price</td>
            <td>@item.Genre.Name</td>
            <td>@item.Artist.Name</td>
            <td>
                @Html.ActionLink("编辑", "Edit", new { id = item.GenreId }) |
                @Html.ActionLink("详情", "Details", new { id = item.GenreId }) |
                @Html.ActionLink("删除", "Delete", new { id = item.GenreId })
            </td>
        </tr>


    }
</table>

